
package guoan.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 预约考试
 * 
 */
@Entity
@Table(name = "auto_form_input")
public class AutoFormInput implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID 自动增长
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "auto_form_id")
    private Long autoFormId;

    @Column(name = "order_id")
    private Long orderId;

    private String type;

    private String name;

    private Long rq;

    private String mact;

    private String selectv;
    @Transient
    private String[] selectvstr;

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public Long getAutoFormId(){
        return autoFormId;
    }

    public void setAutoFormId(Long autoFormId){
        this.autoFormId = autoFormId;
    }

    public Long getOrderId(){
        return orderId;
    }

    public void setOrderId(Long orderId){
        this.orderId = orderId;
    }

    public String getType(){
        return type;
    }

    public void setType(String type){
        this.type = type;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public Long getRq(){
        return rq;
    }

    public void setRq(Long rq){
        this.rq = rq;
    }

    public String getMact(){
        return mact;
    }

    public void setMact(String mact){
        this.mact = mact;
    }

    public String getSelectv(){
        return selectv;
    }

    public void setSelectv(String selectv){
        this.selectv = selectv;
    }

    public String[] getSelectvstr(){
        return selectv != null ? selectv.split("\\|") : null;
    }

    public void setSelectvstr(String[] selectvstr){
        this.selectvstr = selectvstr;

    }
}